package day8;

public final class TestFinal {
    public final void test(){

    }
    //修饰的属性表示常量 一旦赋值不能修改
    final String sex="男";
    final String code;
    //借助于构造函数来赋值
    public TestFinal(String code){
        this.code=code;
    }
    final static String status;
    static {
        status="启用";
    }

}

//class ChildFinal extends TestFinal{
//    public void test(){
//
//    }
//}